package org.example;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author xhw
 * @Date 2023/11/9
 * @Version 1.0
 */
public class TreeNode<T> {
    private T val;


    private List<TreeNode> children;

    public TreeNode(T val) {
        this.val = val;
        this.children = new ArrayList<>();
    }

    public List<TreeNode> getChildren() {
        return children;
    }

    public T getVal() {
        return val;
    }

    public void setVal(final T val) {
        this.val = val;
    }
}

